<?php
App::import ( 'Vendor', 'smarty', array (
		'file' => 'smarty' . DS . 'libs' . DS . 'Smarty.class.php' 
) );

class SmartyComponent extends Smarty {
	var $controller;
	var $template_dir;
	var $compile_dir;
	var $cache_dir;
	var $config_dir;
	var $plugins_dir;
	function __construct() {
		parent::__construct ();
		$this->template_dir = VIEWS;
		$this->compile_dir = TMP . 'smarty' . DS . 'compile' . DS;
		$this->cache_dir = TMP . 'smarty' . DS . 'cache' . DS;
		$this->config_dir = TMP . 'smarty' . DS . 'config' . DS;
		$this->plugins_dir = TMP . 'smarty' . DS . 'plugins' . DS;
		$this->setTemplateDir ( VIEWS );
		$this->setCacheDir ( TMP . 'smarty' . DS . 'cache' . DS );
		$this->setCompileDir ( TMP . 'smarty' . DS . 'compile' . DS );
		$this->setConfigDir ( TMP . 'smarty' . DS . 'config' . DS );
		$this->setPluginsDir ( TMP . 'smarty' . DS . 'plugins' . DS );
		$this->left_delimiter = '{';
		$this->right_delimiter = '}';
	}

}